import styled from 'styled-components';
import { Flex } from 'antd';
import { BORDER_COLOR, PRIMARY_COLOR, RADIUS } from '@/constants/themeConstant.js';

export const FromContent = styled(Flex)`
  height: 100vh;
  width: 100%;

  & > .ant-pro-form-login-container {
    padding: 24px;
    width: 328px;
    min-width: 328px;
    max-width: 328px;
    height: auto;
    border: 1px solid ${BORDER_COLOR};
    border-radius: ${RADIUS}px;
    backdrop-filter: blur(10px) brightness(110%);
    background-color: rgba(255, 255, 255, 0.7);
  }

  .wave {
    position: absolute;
    height: 50%;
    width: 100%;
    background: ${PRIMARY_COLOR};
    top: 0;

    &::before,
    &::after {
      content: '';
      position: absolute;
      border-radius: 100% 50%;
    }

    &::before {
      width: 53.5%;
      height: 110%;
      background-color: #fff;
      right: 0;
      top: 60%;
    }

    &::after {
      width: 53.5%;
      height: 100%;
      background-color: ${PRIMARY_COLOR};
      left: 0;
      top: 40%;
    }
  }
`;
